<div class="pagination">
    <%= pagination_links(@pages, :params => {:action => 'index'}) %>
</div>